/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.sun.hunk.web.listener;

/**
 *
 * @author sunil
 */
public class UserTask {

    public enum Module{
        LCL;
    }
    private String userName;
    private Module module;
    private String fileNumber;

    public UserTask(String userName, Module module, String fileNumber) {
        this.userName = userName;
        this.module = module;
        this.fileNumber = fileNumber;
    }

    public String getFileNumber() {
        return fileNumber;
    }

    public void setFileNumber(String fileNumber) {
        this.fileNumber = fileNumber;
    }

    public Module getModule() {
        return module;
    }

    public void setModule(Module module) {
        this.module = module;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final UserTask other = (UserTask) obj;
        if ((this.userName == null) ? (other.userName != null) : !this.userName.equals(other.userName)) {
            return false;
        }
        if (this.module != other.module) {
            return false;
        }
        if ((this.fileNumber == null) ? (other.fileNumber != null) : !this.fileNumber.equals(other.fileNumber)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 71 * hash + (this.userName != null ? this.userName.hashCode() : 0);
        return hash;
    }
}
